package com.simon.jkxj.ui.diet;

import java.util.ArrayList;
import java.util.List;

public class BloodSugarDataManager {
    private static final List<BloodSugarRecordActivity.BloodSugarRecord> recordList = new ArrayList<>();
    public static List<BloodSugarRecordActivity.BloodSugarRecord> getRecords() { return recordList; }
    public static void addRecord(BloodSugarRecordActivity.BloodSugarRecord record) { recordList.add(record); }
    public static void clear() { recordList.clear(); }
    public static BloodSugarRecordActivity.BloodSugarRecord getLatestRecord() {
        if (recordList.isEmpty()) return null;
        return recordList.get(recordList.size() - 1);
    }
} 